<?php if ($this->pageCount) ?>
<div class="paging" align="center">

    <?php
    if ($this->first!=$this->current){
    ?>
        <a href="#" onclick="loadPage('<?=$this->first?>')">&lt;&lt; First</a>&nbsp;&nbsp;    
        <!--<a href="#<?=$this->url(array('page'=>$this->first))?>">&lt;&lt; First</a>&nbsp;&nbsp;-->
    <?php
    }
    ?>

    <?php 
    if (isset($this->previous)){
    ?>
        <a href="#" onclick="loadPage('<?=$this->previous?>')">&lt; Previous</a>&nbsp;&nbsp;
        <!--<a href="<?=$this->url(array('page'=>$this->previous))?>">&lt; Previous</a>&nbsp;&nbsp;-->
    <?php
    }
    foreach ($this->pagesInRange as $page){
       if ($page != $this->current){
        ?>
            <a href="#" onclick="loadPage('<?=$page?>')"><?=$page?></a>&nbsp;
            <!--<a href="#<?=$this->url(array('page'=>$page))?>"><?=$page?></a>&nbsp;-->
        <?php                
        }else{
        ?>
            <span class="dangxem"><?=$page?></span>&nbsp;
        <?php          
        }
    }
    ?>
    <?php
    if (isset($this->next)){
    ?>
        <a href="#" onclick="loadPage('<?=$this->next?>')">Next &gt;</a>
        <!--<a href="<?=$this->url(array('page'=>$this->next))?>">Next &gt;</a>-->
    <?php        
    }
    ?>
    <?php
    if ($this->last!=$this->current){
    ?>
        <a href="#" onclick="loadPage('<?=$this->last?>')">Last &gt;&gt;</a>&nbsp;&nbsp;
        <!--<a href="<?=$this->url(array('page'=>$this->last))?>">Last &gt;&gt;</a>&nbsp;&nbsp;-->
    <?php
    }
    ?>
    
</div>